<template>
	<view class="guize">
		<view v-html="rule" style="color: #fff;"></view>
	</view>
</template>

<script>
	import uParse from '@/components/gaoyia-parse/parse.vue'
	export default {
		components: {
			uParse
		},
		data() {
			return {
				z_imgUrl: this.$z_imgUrl,
				rule: '',
				title: ''
			}
		},
		onLoad(e) {
			console.log(e)
			this.getnews(e.type)
			let title = '';
			if (e.type == 1) {
				title = ''
			}
			if (e.type == 2) {
				title = '用户协议'
			}
			if (e.type == 3) {
				title = '抽赏购买说明'
			}
			if (e.type == 4) {
				title = '无限赏购买说明'
			}
			if (e.type == 5) {
				title = '无限令规则'
			}
			if (e.type == 6) {
				title = '抽卡机购买说明'
			}
			if (e.type == 7) {
				title = '排行榜规则'
			}
			if (e.type == 8) {
				title = '盒柜发货规则'
			}
			if (e.type == 9) {
				title = '邀请好友规则'
			}
			if (e.type == 10) {
				title = '打包规则'
			}
			this.title = title
			uni.setNavigationBarTitle({
				title: title
			})
		},
		methods: {

			getnews(e) {
				let that = this;
				that.req({
					url: 'danye',
					data: {
						type: e,
					},
					success(res) {
						if (res.status == 1) {
							that.rule = res.data
						}
					}
				})
			},


		}
	}
</script>


<style>
	.text_2,
	.text_3 {
		font-size: 28rpx;
		margin-top: 60rpx;
	}

	.text_1 {
		margin-top: 30rpx;
		font-size: 32rpx;
		color: #fff;

	}

	.guize {
		width: 100vw;
		height: 100vh;
		position: relative;
		padding: 24rpx;
		box-sizing: border-box;
	}

	page {
		background-color: #000;
	}
</style>
